package com.itheima.pay;

public class SilverCard extends  Card{
    public SilverCard(String number, String name, String phone, double balance) {
        super(number, name, phone, balance);
    }

    @Override
    public void pay(double money) {
        setBalance(getBalance()-money*0.9);
        System.out.println("银卡支付成功,享受9折优惠");
        System.out.println("打折后需要支付的金额为"+money*0.9);
        System.out.println("支付后的余额为"+getBalance());
    }
}
